From c5d238206dd1aa8f64e10efe12f031766ebf1e90 Mon Sep 17 00:00:00 2001 From: Steven Hand Date: Mon, 15 Jan 2007 18:09:16 +0000 Subject: [PATCH] Remove bogus sanity check from xc_linux_save. (a guest from another host (or an earlier time) can quite validly have a max_mfn bigger the current max on this host) Signed-off-by: Steven Hand --- tools/libxc/xc_linux_save.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/libxc/xc_linux_save.c b/tools/libxc/xc_linux_save.c index 7ca8453848..ef64d1ef50 100644 --- a/tools/libxc/xc_linux_save.c +++ b/tools/libxc/xc_linux_save.c @@ -660,13 +660,6 @@ int xc_linux_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters, goto out; } - /* cheesy sanity check */ - if ((info.max_memkb >> (PAGE_SHIFT - 10)) > max_mfn) { - ERROR("Invalid state record -- pfn count out of range: %lu", - (info.max_memkb >> (PAGE_SHIFT - 10))); - goto out; - } - /* Map the shared info frame */ if(!(live_shinfo = xc_map_foreign_range(xc_handle, dom, PAGE_SIZE, PROT_READ, shared_info_frame))) { -- 2.30.2